package com.login.until;

/**
 * Copyright © 2017 sdjictec.Co.Ltd. All rights reserved.
 **/


import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

public class DBCloUtills {


    public void release(Connection conn, Statement st, ResultSet rs){

        if(rs !=null){
            try {
                rs.close();
            } catch (SQLException e) {
                e.printStackTrace();
            }
        }

        if (st != null) {

            try {
                st.close();
            } catch (SQLException e) {
                e.printStackTrace();
            }

        }

        if (conn != null) {

            try {
                conn.close();
            } catch (SQLException e) {
                e.printStackTrace();
            }

        }


    }
}
